
<ul class="nav nav-bardown nav-justified" style="z-index:10;height:45px;">
    <li><a href="{php echo $this->createMobileUrl('home')}"><i class="glyphicon glyphicon-home" style='font-size:20px;'></i> <span>首页</span></a></li>
    <li><a href="{php echo $this->createMobileUrl('announcement',array('op' => 'display'))}" class="active"><i class="fa fa-envelope" style='font-size:20px;'></i> <span>通知</span></a></li>
    <li><a href="tel:{php echo $this->module['config']['tel'];}"><i class="glyphicon glyphicon-phone-alt" style='font-size:20px;'></i> <span>电话</span></a></li>
    <li><a href="{php echo $this->createMobileUrl('member')}"><i class="fa fa-user" style='font-size:20px;'></i> <span>我的</span></a></li>
</ul>



		{if !empty($_W['quickmenu']['menus']) && empty($_W['quickmenu']['disabled'])}
			<?php include_once template($_W['quickmenu']['template'], TEMPLATE_INCLUDEPATH);?>
		{/if}
		<script>require(['bootstrap']);</script>
	</div>
	<style>
		h5{color:#555;}
	</style>
<?php
	$_share['title'] = !empty($_share['title']) ? $_share['title'] : $_W['account']['name'];
	$_share['imgUrl'] = !empty($_share['imgUrl']) ? $_share['imgUrl'] : '';
	if(isset($_share['content'])){
		$_share['desc'] = $_share['content'];
		unset($_share['content']);
	}
	$_share['desc'] = !empty($_share['desc']) ? $_share['desc'] : '';
	$_share['desc'] = preg_replace('/\s/i', '', str_replace('	', '', cutstr(str_replace('&nbsp;', '', ihtmlspecialchars(strip_tags($_share['desc']))), 60)));
	if(empty($_share['link'])) {
		$_share['link'] = '';
		$query_string = $_SERVER['QUERY_STRING'];
		if(!empty($query_string)) {
			//加上分享人的uid
			parse_str($query_string, $query_arr);
			$query_arr['u'] = $_W['member']['uid'];
			$query_string = http_build_query($query_arr);
			$_share['link'] = $_W['siteroot'].'app/index.php?'. $query_string;
		}
	}
?>
	<script type="text/javascript">
	
	wx.config(jssdkconfig);
	
	require(['jquery', 'util'], function($, util){
		
		var $_share = {php echo json_encode($_share);};
		
		if(typeof sharedata == 'undefined'){
			sharedata = $_share;
		} else {
			sharedata['title'] = sharedata['title'] || $_share['title'];
			sharedata['desc'] = sharedata['desc'] || $_share['desc'];
			sharedata['link'] = sharedata['link'] || $_share['link'];
			sharedata['imgUrl'] = sharedata['imgUrl'] || $_share['imgUrl'];
		}
		
		if(sharedata.imgUrl == ''){
			var _share_img = $('body img:eq(0)').attr("src");
			if(typeof(_share_img) == "undefined"){
				sharedata['imgUrl'] = window.sysinfo.attachurl + 'images/global/wechat_share.png';
			} else {
				sharedata['imgUrl'] = util.tomedia(_share_img);
			}
		}
		
		if(sharedata.desc == ''){
			var _share_content = _removeHTMLTag($('body').html());
			if(typeof _share_content == 'string'){
				sharedata.desc = _share_content.replace($_share['title'], '')
			}
		}
		
		wx.ready(function () {
			wx.onMenuShareAppMessage(sharedata);
			wx.onMenuShareTimeline(sharedata);
			wx.onMenuShareQQ(sharedata);
			wx.onMenuShareWeibo(sharedata);
		});
	});
	</script>
	
	<script>
		require(['jquery'],function(){
			$(function(){
				if($('.quick')!=null && $('.quick')!=''){
					var h = $('.quick').height()+'px';
					$('body').css("padding-bottom",h);
				}else{
					$('body').css("padding-bottom","0");
				}
			})
		});
	</script>
</body>
</html>
